package main

import (
	"github.com/gin-gonic/gin"
	"oceanlearn.learn/ginessential/controller.go/common"
)

func main() {
	db := common.InitDB()
	defer db.Close()

	r := gin.Default()
	r = CollectRouter(r)
	r.Run() // 监听并在 0.0.0.0:8080 上启动服务
}
